import appium
from appium import webdriver

cap={
  "platformName": "android",
  "deviceName": "127.0.0.1:7555",
  "appPackage": "com.xueqiu.android",
  "appActivity": ".view.WelcomeActivityAlias",
  "noReset": "true",
  "skipDeviceInitialization": "true"
}

driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub',cap)
driver.implicitly_wait(15)
time.sleep(15)

win_size = driver.get_window_size()

zb_x = int(win_size["width"])*0.5
zb_y = int(win_size["height"])*0.6

end_x = int(win_size["width"])*0.5
end_y = int(win_size["height"])*0.3
print(win_size)
print(zb_x)
print(zb_y)
print(end_x)
print(end_y)

driver.swipe(zb_x,end_y,end_x,zb_y,1000)